<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
  export default{
    name: 'App',
    watch: {
      '$route': 'whichRoute'
    },
    mounted() {
      this.whichRoute
    },
    methods: {
      whichRoute() {
        const title = this.$route.meta.title
        document.title = this.$t(`route.${title}`)
      }
    }
  }
</script>
<style lang="scss">
  #app{
    background-color: #fff;
  }
</style>
